<style type="text/css">
</style>
<script type="text/javascript">
    LC.initToolbar({
        'new': LC.S.tools.toolNew,
        'cancel': LC.S.tools.toolCancel,
        'flesh': LC.S.tools.toolFlesh
    });
    $(document).ready(function (e) {
        dialog('.userRoleSet', {
            autoOpen: false,
            modal: true,
            title: "选择用户角色"
        });
        LC.S.id = '${user._id}';
        LC.S.edit('.userDetail .edit', LC.S.serviceUrl + LC.S.URL_UPDATE, '${user._id}');
        //setedit('.userDetail .edit', 'system/user.action?act=update');
        var roleSet = $('<span class="icon-edit"></span>').click(function (e) {
            if ($('.userRoleSet').attr('none') != undefined) {
                $('.userRoleSet').removeAttr('none');
                $('.userRoleSet').load('system/user.action?_act=update&type=role')
            }
            $('.userRoleSet').dialog('open');
        });
        $('.userRole').after(roleSet);
    });
</script>
<@com.toolbar />
<div class="userDetail">
    <div class="group">
        <div class="label">编号：</div>
        <div class="value">${user._id}</div>
    </div>
    <div class="group">
        <div class="label">帐号：</div>
        <div class="value">
            <span class="edit" type="text" regx="${check.userName}" name="USER_NAME">${user.userName}</span>
        </div>
    </div>
    <div class="group">
        <div class="label">密码：</div>
        <div class="value"><span class="edit" type="password" name="PASSWORD" md5>************</span>
        </div>
    </div>
    <div class="group">
        <div class="label">姓名：</div>
        <div class="value"><span class="edit" type="text" regx="${check.name}" name="NAME">${user.name}</span></div>
    </div>
    <div class="group">
        <div class="label">角色名称：</div>
        <div class="value"><span class="userRole">${role.name!"未指定用户角色"}</span></div>
    </div>
    </table>
    <div class="userRoleSet" none _id="${user._id}">
        <img class="loading-img" src="../images/loading.gif"/>
    </div>
</div>